package nanoid

import (
	"fmt"

	gonanoid "github.com/matoous/go-nanoid"
)

func GetNanoId() string {
	id, err := gonanoid.Nanoid()
	if err != nil {
		fmt.Println(err)
	}
	return id
}

func GetNanoId2(contrain string, longth int) string {
	id, err := gonanoid.Generate("abcde", longth)
	if err != nil {
		fmt.Println(err)
	}
	return id
}
